package com.wb.proxy.javassist;

/**
 * @author 魏彪
 */
public class Client {

    public static void main(String[] args) throws InstantiationException, IllegalAccessException {
        TargetProxy proxy = new TargetProxy();

        TargetInterfaceImpl targetClass = (TargetInterfaceImpl) proxy.getProxy(TargetInterfaceImpl.class);

        targetClass.sayHi();
    }
}
